package com.aoxon.cargo.service;

import java.util.HashMap;

import com.aoxon.cargo.bean.GsonBean;
import com.aoxon.cargo.bean.Supplier;
import com.aoxon.cargo.cache.keyCache;
import com.google.gson.Gson;

/**
 * 提交商家认证信息的服务
 * 
 * @author ZZJ
 * 
 */
public class CertificationService extends MyService {

	/**
	 * 提交认证信息的操作
	 * 
	 * @param supplier
	 * @return
	 */
	public GsonBean execute(Supplier supplier) {

		url = "getCertification" + suffix;

		params = new HashMap<String, String>();
		params.put("supId", String.valueOf(keyCache.supId));
		params.put("key", keyCache.key);
		params.put("supplierInfor", new Gson().toJson(supplier));

		return doPost();

	}
}
